package com.link.base.base.invloc.dao.mybatis.mapper;

import com.link.base.base.invloc.model.InvProdLoc;
import com.link.base.base.invloc.model.InventoryModel;
import com.link.base.base.product.model.Product;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.service.BasicServiceException;

import java.util.List;


/**
 * @author: unknown
 * created: unknown
 * comments: 产品库存
 */
public interface InvProdLocMapper extends BasicMapper<InvProdLoc> {
    /**按照id查询产品库存量
     *
     * @param record
     * @return InvProdLoc
     * @throws BasicServiceException
     * @throws Exception
     */
    public InvProdLoc queryInvProdLocBystockId(InvProdLoc record) throws BasicServiceException, Exception;

    /**
     * 库存列表查询
     *
     * @param inventoryModel
     * @return list
     * @throws Exception
     */
    public List<InventoryModel> queryVendorInvprodPage(InventoryModel inventoryModel) throws Exception;

    /**
     * 采购建议报表查询
     * @param product
     * @return list
     * @throws Exception
     */
    public List<Product> queryBuySuggestReport(Product product) throws Exception;
}
